﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<MvcApplication1.Models.Topic>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Topics</h2>
    <ul>
        <% foreach (var topic in Model) { %>
            <li>
                <%= Html.ActionLink(topic.Tema, "Details", new { id=topic.IDTopic }) %>
                <%= Html.Encode("    Fecha:  " + topic.Fecha.ToShortDateString()) %>
            </li>
        <% } %>
    </ul>

    <p>
        <%: Html.ActionLink("Nuevo Topic", "Create") %>
    </p>

</asp:Content>

